package com.moliku.insurance.process.service.impl;

import com.moliku.insurance.common.response.CommonInsureResult;
import com.moliku.insurance.common.response.R;
import com.moliku.insurance.model.dto.CancelInsureDTO;
import com.moliku.insurance.model.dto.DownloadInsureDTO;
import com.moliku.insurance.model.dto.insure.InsureDTO;
import com.moliku.insurance.process.strategy.PolicyStrategy;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

/**
 * 平安
 *
 * @author Mr.Liu
 * @since 2021/2/25
 */
@Slf4j
@Service("PingAnService")
public class PingAnServiceImpl implements PolicyStrategy {
    @Override
    public CommonInsureResult submitPolicy(InsureDTO request) {
        return CommonInsureResult.submitPolicyFail("平安投保尚未接通");
    }

    @Override
    public CommonInsureResult cancelPolicy(CancelInsureDTO request) {
        return CommonInsureResult.cancelPolicyFail("平安退保尚未接通");
    }

    @Override
    public CommonInsureResult downloadPolicy(DownloadInsureDTO downloadInsure) {
        return CommonInsureResult.downloadPolicyFail("平安下载保单尚未接通");
    }
}
